package com.iweb.day05.oldwang;

import java.util.Scanner;

/**
 * @author WuYongheng
 * @date 2021/11/1
 * @description
 */
public class TestPrint {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        OldWang oldWang = null;
        System.out.println("请输入需要打印的效果：（彩色/黑白）");
        String s = scanner.nextLine();

            switch (s) {
                case "彩色":
                    oldWang = new Rgb();
                    break;
                case "黑白":
                    oldWang = new Grey();
                    break;
                default:
                    System.out.println("输入错误");
                    break;
            }
        String print = oldWang.Print();
        System.out.println(print);

    }
}
